home *** CD-ROM | disk | FTP | other *** search
- -- card: 110950 from stack: in
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 4507
- -- name:
- ----- HyperTalk script -----
- function square x
- return x * x
- end square
-
- on closeCard
- put empty into card field 1
- end closeCard
-
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 2004
- -- rect: left=367 top=180 right=203 bottom=456
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part contents for background part 43
- ----- text -----
- 337,169
-
- -- part contents for background part 2
- ----- text -----
- Functions you define
-
- -- part contents for background part 1
- ----- text -----
- You can define new functions:
-
- function square x --in this card's script
- return x * x
- end square
-
- put 3 * square(17) into card field 1
-
- User-defined functions are not preceded by "the" and they are always followed by parentheses, whether or not they include an argument.
-
-
-
- -- part contents for background part 44
- ----- text -----
-
-
- to define a function
-
-
- to use it